home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4550 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  950 b 

  1. Path: hilbert.dnai.com!usenet
  2. From: Victor Bazarov <vbazarov@imsisoft.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: (void(far *)()) 0
  5. Date: Mon, 05 Feb 1996 11:33:49 -0800
  6. Organization: IMSI
  7. Message-ID: <31165B9D.398E@imsisoft.com>
  8. References: <341998718.10858110@magnet.at>
  9. NNTP-Posting-Host: 204.182.61.84
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (Win95; I)
  14.  
  15. markus imlinger wrote:
  16. > In a C-Programm I saw the instruction:
  17. > .... = (void(far *)()) 0;
  18. > It seems that (void(far *)()) is a cast-
  19. > operator.
  20. > If so this instruction casts 0 to a far-
  21. > pointer to a function which returns nothing.
  22.  
  23. And has no parameters.
  24.  
  25. > Now I want to know if my assumption is right and
  26. > in case it is, what does this mean for 0 ?
  27.  
  28. Nothing but what you've said -- cast. '0' has type 'int',
  29. and must be converted into pointer to function in order
  30. to be properly assigned.
  31.  
  32. Victor.
  33.